Re: [GENERAL] viewing/editing function definitions - Mailing list pgsql-general

From Herouth Maoz
Subject Re: [GENERAL] viewing/editing function definitions
Date
Msg-id l03110704b2d9f72eb3b5@[147.233.159.109]
Whole thread Raw
In response to viewing/editing function definitions  (Danny Rice <dwrice@indiana.edu>)
List pgsql-general
At 12:38 +0200 on 28/01/1999, Danny Rice wrote:


> With pgaccess I can "Open" a user defined function and see how it was
> defined.  Is there a way to do this with psql or some other interface
> (preferably text based)?  What is the best way to edit an existing
> function?

The only way I can think of is to dump the specific function using pg_dump
with appropriate flags. This enables you to see it.

Editing would be editing the resulting file, dropping the function and
running the file through psql. However, there is a catch here - last time I
tried this was on 6.2.1 - and this is that if you have a table that relies
on this function for default or constraint, I think you'll run into a
problem. This is probably because the new function definition has a
different OID.

Herouth

--
Herouth Maoz, Internet developer.
Open University of Israel - Telem project
http://telem.openu.ac.il/~herutma



pgsql-general by date:

Previous
From: Herouth Maoz
Date:
Subject: Re: [GENERAL] Re: Displaying Image BLOBs
Next
From: Joerg Huettmann
Date:
Subject: Missing features ?